package com.github.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.github.api.RiskRuleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName RiskRuleServiceImpl
 * @Description TODO 实现api 提供者
 * @Author shuang669539827@163.com
 * @Date2019/3/25 16:08
 * @Version v1.0
 **/
@Service(version = "1.0.0")
public class RiskRuleServiceImpl implements RiskRuleService {

    private static final Logger logger = LoggerFactory.getLogger(RiskRuleServiceImpl.class);

    @Override
    public String sayHai(String name) {
        System.out.println(RpcContext.getContext().getRemoteAddress());
        return "你好啊。" + name + "调用了我";
    }
}
